 using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Prr
{
    public class Stones
    {
        protected string name;
        protected int weight;
        protected string type;
        protected int price;

         


        public string getName()
        {
            return this.name;
        }
        public void setName(string name)
        {
            this.name = name;
        }


        public int getWeight()
        {
            return this.weight;
        }
        public void setWeight(int weight)
        {
            this.weight = weight;
        }


        public void setType(string type)
        {
            this.type = type;
        }
        public string getType()
        {
            return this.type;
        }


        public int getprice()
        {
            return this.price;
        }
        public void setprice(int price)
        {
            this.price = price;
        }
    }
    public class Precious : Stones
    {
        public object type1;
        public Precious()
            : base()
        {
            this.type = "Precious";

        }
    }

    public class Nonprecious : Stones
    {
        public Nonprecious()
            : base()
        {
            this.type = "Nonprecious";

        }
    }



    public class Diamond : Precious
    {
        public Diamond()
            : base()
        {
            this.name = "Алмаз";
            this.price = 10;
        }
    }

    public class Emerald : Precious
    {
        public Emerald()
            : base()
        {
            this.name = "Изумруд";
            this.price = 20;
        }
    }





    public class Agate : Nonprecious
    {
        public Agate()
            : base()
        {
            this.name = "Агат";
            this.price = 30;
        }

    }

    public class Amethyst : Nonprecious
    {
        public Amethyst()
            : base()
        {
            this.name = "Аметист";
            this.price = 40;
        }
    }


}